package com.cloud.api.domain.service;

import com.xingyuv.captcha.model.vo.CaptchaVO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 杨斌
 * 2025-03-2025-03-10
 */
@Data
@Accessors
@Schema(name = "QueryAuthorization")
public class QueryAuthorization implements Serializable {
    @Schema(description = "手机号")
    @NotEmpty(message = "手机号不能为空")
    @NotNull(message = "手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号长度错误")
    private String contactPhone;

    private String code;

    private CaptchaVO captchaVO;

}
